<?php
/* @var $this SucessfulCaseController */
/* @var $model SucessfulCase */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sucessful-case-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>


	<div class="row">
         <?php echo $form->labelEx($model,'health_condition_id'); ?>
         <?php echo $form->dropDownList($model,'health_condition_id', CHtml::listData(
         HealthCondition::model()->findAll(), 'id', 'health_condition'),
         array('prompt' => 'Health Condition')); ?>
         <?php echo $form->error($model,'health_condition_id'); ?>
    </div>
	
	<div class="row">
         <?php echo $form->labelEx($model,'type_of_modality_id'); ?>
         <?php echo $form->dropDownList($model,'type_of_modality_id', CHtml::listData(
         TypeOfModality::model()->findAll(), 'id', 'type_of_modality'),
         array('prompt' => 'Type of Modality')); ?>
         <?php echo $form->error($model,'type_of_modality_id'); ?>
    </div>

	<div class="row">
         <?php echo $form->labelEx($model,'modality_id'); ?>
         <?php echo $form->dropDownList($model,'modality_id', CHtml::listData(
         Modality::model()->findAll(), 'id', 'modality_name'),
         array('prompt' => 'Modality Name')); ?>
         <?php echo $form->error($model,'modality_id'); ?>
    </div>
	

	<div class="row">
		<?php echo $form->labelEx($model,'testimony'); ?>
		<?php echo $form->textArea($model,'testimony',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'testimony'); ?>
	</div>
<!--
	<div class="row">
		<?php echo $form->labelEx($model,'duration_of_treatment'); ?>
		<?php echo $form->textField($model,'duration_of_treatment',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'duration_of_treatment'); ?>
	</div>
-->
	<div class="row">
         <?php echo $form->labelEx($model,'member_id'); ?>
         <?php echo $form->dropDownList($model,'member_id', CHtml::listData(
         Member::model()->findAll(), 'id', 'last_name'),
         array('prompt' => 'Choose a Practitioner')); ?>
         <?php echo $form->error($model,'member_id'); ?>
    </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->